<?php
class ReportModel extends BaseModel
{
    public static function getDailyEmails()
    {
        $sql = 'SELECT email FROM report_daily_email WHERE enable = 1';
        $command = Yii::app()->db->createCommand($sql);
        return $command->queryColumn();
    }
}